<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@page import="org.springframework.security.core.userdetails.User"%>

<div>
<div class="header-logo"><%-- <a href='<s:url value="/home" />'><img alt="Logo"
	src='<s:url value="/assets" />/images/header-logo.png'/> --%> <a
	href='<s:url value="/home" />'><br />
<br />
<span style="font-size: 38px;">SMS<br />
<span style="font-size: 10px;">School Management System</span></span> </a></div>
<div
	style="text-align: right; height: 30px; padding-top: 5px; width: 500px; float: right">
Welcome <%=session.getAttribute("loggedUser") == null ? "Guest"
							: ((User) session.getAttribute("loggedUser"))
									.getUsername()%> (<c:out value="${sessionScope.loggedUser}" />)
<c:choose>
	<c:when test="${sessionScope.loggedUser eq null}">
		<span>&nbsp;|&nbsp;</span>
		<a href='<s:url value="/schoolLogin" />' />Login</a>
		<span>&nbsp;&nbsp;&nbsp;</span>
	</c:when>
	<c:otherwise>
		<a href="<c:url value="/j_spring_security_logout" />"> Logout</a>
		<span>&nbsp;&nbsp;&nbsp;</span>
	</c:otherwise>
</c:choose></div>

</div>